package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.OrderCreateDto;
import com.molichuxing.services.infrastructure.dto.response.OrderDto;
import com.molichuxing.services.infrastructure.dto.response.OrderSubcompanyDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author renzhengyu
 * @since 2019-08-12
 */
public interface OrderService extends RootService {

    /**
     * 查询主订单信息
     *
     * @param orderCode 订单号
     * @return
     */
    public OrderDto getOrder(Long orderCode);

    /**
     * 新增订单表信息
     *
     * @param createDto
     * @return 订单表id
     */
    public Integer create(OrderCreateDto createDto);

    /**
     * 查询订单和资产公司
     *
     * @param orderCodes
     * @return
     */
    Map<Long, OrderSubcompanyDto> getOrderAndSubcompany(List<Long> orderCodes);
}
